package com.lyncs.ods.modules.company.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 企业权限组信息
 * </p>
 *
 * @author alex
 * @since 2022-07-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("company_role_group")
@ApiModel(value = "CompanyRoleGroup对象", description = "企业权限组信息")
public class CompanyRoleGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("企业id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("权限组名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("权限组图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("企业ID")
    @TableField("company_id")
    private Long companyId;

    @ApiModelProperty("状态：1.启用；2.禁用")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("创建者用户id")
    @TableField("creator")
    private Long creator;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
